<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="ThemeBucket">
    <link rel="shortcut icon" href="#" type="image/png">

    <title>Editable Table</title>

    <link th:include="common::commonheader">
</head>

<body class="sticky-header">

<section>

    <div th:replace="common::#leftmenu"></div>
    <div class="main-content" >
        <div th:replace="common::#topmenu"></div>

        <form class="form-signin" th:action="@{/student_dept_03/update/{id}(id=${result.getSNo()})}">
            <div class="form-signin-heading text-center">
                <h1 class="sign-title">修改内容</h1>
                <img src="../../static/images/logo.png" alt=""/>
            </div>
            <div class="login-wrap">
                <p>请修改学生信息</p>
                <input th:value="${result.getSNo()}" type="text" autofocus="" placeholder="学生学号" class="form-control" name="sNo">
                <input th:value="${result.getSName()}" type="text" autofocus="" placeholder="姓名" class="form-control" name="sName">
                <div class="radios">
                    <label for="radio-01" class="label_radio col-lg-6 col-sm-6">
                        <input th:checked="${result.getSex()=='男'}" type="radio" checked="" value="男" id="radio-01" name="sex" > 男
                    </label>
                    <label for="radio-02" class="label_radio col-lg-6 col-sm-6">
                        <input th:checked="${result.getSex()=='女'}" type="radio" value="女" id="radio-02" name="sex"> 女
                    </label>
                </div>
                <input th:value="${result.getSGrade()}" type="text" autofocus="" placeholder="年级" class="form-control" name="sGrade">
                <input th:value="${result.getSProfessional()}" type="text" autofocus="" placeholder="专业" class="form-control" name="sProfessional">
                <input th:value="${result.getQq()}" type="text" autofocus="" placeholder="QQ" class="form-control" name="qq">
                <input th:value="${result.getTelephoneNum()}" type="text" autofocus="" placeholder="电话号码" class="form-control" name="TelephoneNum">
                <select name="dId">
                    <option th:selected="${dept.getDId()==result.getDId()}" th:each="dept:${deptsList}" th:text="${dept.getDName()}" th:value="${dept.getDId()}"></option>
                </select>
                <button type="submit" class="btn btn-lg btn-login btn-block">
                    <i class="fa fa-check"></i>
                </button>
            </div>
        </form>






    </div>
</section>



<!--data table-->
<script type="text/javascript" src="js/data-tables/jquery.dataTables.js"></script>
<script type="text/javascript" src="js/data-tables/DT_bootstrap.js"></script>

<div th:replace="common::#commonscrip"></div>

<!--script for editable table-->
<script src="js/editable-table.js"></script>

<!-- END JAVASCRIPTS -->
<script>
    jQuery(document).ready(function() {
        EditableTable.init();
    });
</script>

</body>
</html>
